package org.dromara.business.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.tenant.core.TenantEntity;

import java.io.Serial;
import java.math.BigDecimal;
import java.util.List;

/**
 * business信息对象 businessinfo
 *
 * @author sxl
 * @date 2024-08-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("lzsh_business_info")
public class LzshBusinessInfo extends TenantEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *  id
     */
    @TableId(value = "id")
    private Long id;

    /**
     *  模板id
     */
    private Long templateId;

    /**
     *  菜单id
     */
    private Long menuId;

    /**
     *  菜单名
     */
    private String menuName;

    /**
     *  模板对象
     */
//    @TableField(typeHandler = LzshTemplateTypeHandler.class)
    @TableField(typeHandler = JacksonTypeHandler.class)
    private LzshTemplate template;

    /**
     *  用户信息
     */
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<String> userInfo;

    /**
     *  商业地址
     */
    private String businessAddress;

    /**
     *  经度
     */
    private BigDecimal latitude;

    /**
     *  纬度
     */
    private BigDecimal longitude;

    /**
     *  老套餐
     */
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<List<String>> oldPlans;

    /**
     *  新套餐
     */
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<List<List<String>>> newPlans;




}
